package com.lyf.learn.atsgg.spring.ioc.bean;

/**
 * @AUTHOR LYF
 * @DATE 2022/5/25
 * @VERSION 1.0
 * @DESC
 */
public class ListStyleBean {
    private String name;

    public ListStyleBean() {
        System.out.println("step1:执行无参构造");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        System.out.println("step2:执行setter注入");
    }

    public void initMethod(){
        System.out.println("step3:初试化操作");
    }

    public void destroyMethod(){
        System.out.println("step5:执行销毁构造");
    }

}
